import axios from "axios";
import qs from "qs";
import store from "@/store/store";


// 环境的切换
const nodeEnv = process.env.NODE_ENV;
let envMap = new Map([
  ["development", "https://tdoctor.dedvl.com/"],
  ["test", "https://tdoctor.dedvl.com/"],
  ["production", "https://tdoctor.dedvl.com/"]
]);
// axios.defaults.baseURL = envMap.get(nodeEnv);

// let url = 'http://192.168.1.81:8098/';
// let url = 'http://111.231.58.249:8098';
axios.defaults.retry = 4;
axios.defaults.retryDelay = 1000;
axios.defaults.timeout = 15000;

export default axios;
